// 
//  putCrab2.js
//  <project>
//  
//  Created by lenovo on 2018-03-20.
//  Copyright 2018 lenovo. All rights reserved.
// 

$('#submit').click(function(){
	var data ={
		CardNo:$('#CardNo').val(),
		password:$('#password').val()
	}
	if(!data.CardNo){
		alert('卡号不能为空')
		return
	}
	if(!data.password){
		alert('密码不能为空')
		return
	}
	console.log(data)
	location.href = 'putCrab3.html'
})
$('.putCrabBox').click(function(){
	if($(this).hasClass('check')){
		$(this).removeClass('check');
	}else{
		$(this).addClass('check');
	}
})